from cyaron import *

name = "compare"

for i in range(1, 11):
    test_data = IO(file_prefix=name, data_id=i)
    if i < 5:
        maxn = 10
        maxa = 10
    else:
        maxn = 100
        maxa = 20

    n = randint(3, maxn)
    test_data.input_writeln(n)
    li = []
    for i in range(n):
        li.append(randint(0, maxa))
    test_data.input_writeln(li)
    test_data.output_gen("./"+name)